package com.lagou.service;

import com.lagou.domain.Course;
import com.lagou.domain.CourseVo;

import java.lang.reflect.InvocationTargetException;
import java.util.List;

public interface CourseService {

    /**
     * 多条件课程查询
     */
    public List<Course> findCourseByCondition(CourseVo courseVo);

    /**
     * 添加课程及讲师信息
     */
    public void saveCourseOrTeacher(CourseVo courseVo) throws InvocationTargetException, IllegalAccessException;

    /**
     * 回显课程信息 (根据ID查询对应的课程信息及讲师信息)
     * CourseVo:封装了对应的课程及讲师信息
     */
    public CourseVo findCourseById(Integer id);

    /**
     * 更新课程及讲师信息
     */
    public void updateCourseOrTeacher(CourseVo courseVo) throws InvocationTargetException, IllegalAccessException;

    /**
     * 课程状态变更
     */
    public void updateCourseStatus(int courseId,int status);
}
